package com.YxyBackMange.Service.Ware.Impl;
import com.YxyBackMange.Entity.Ware.WareGoodsInfo;
import com.YxyBackMange.Mapper.Ware.WareGoodsInfoMapper;
import com.YxyBackMange.Service.Ware.WareGoodsInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WareGoodsInfoServiceImpl implements WareGoodsInfoService{
	
	@Autowired
    private WareGoodsInfoMapper wareGoodsInfoMapper;
    
   @Override
   public WareGoodsInfo insertService(WareGoodsInfo wareGoodsInfo){
        wareGoodsInfoMapper.insertSelective(wareGoodsInfo);
	   return wareGoodsInfo;
	   
   };
   @Override
   public WareGoodsInfo updateService(WareGoodsInfo wareGoodsInfo){
	     wareGoodsInfoMapper.updateByPrimaryKeySelective(wareGoodsInfo);
        return wareGoodsInfo;
   };
    @Override
    public WareGoodsInfo update(WareGoodsInfo wareGoodsInfo) {
        wareGoodsInfoMapper.updateByPrimaryKeySelective(wareGoodsInfo);
        return wareGoodsInfo;
    }
   @Override
   public WareGoodsInfo delete(WareGoodsInfo wareGoodsInfo){

	     wareGoodsInfoMapper.delete(wareGoodsInfo);
        return wareGoodsInfo;
   };
    @Override
    public WareGoodsInfo insert(WareGoodsInfo wareGoodsInfo){

        wareGoodsInfoMapper.insertSelective(wareGoodsInfo);
        return wareGoodsInfo;

        };
}
